package com.design.factory.complex;


import com.design.factory.common.service.ApplePizza;
import com.design.factory.common.service.BananaPizza;
import com.design.factory.common.service.Pizza;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/13
 * @Description
 */
public class JackPizzaStore extends PizzaStore {
    @Override
    public Pizza createPizza(String type) {
        Pizza pizza = null;
        if("apple".equals(type)){
            pizza = new ApplePizza();
        }else if("banana".equals(type)){
            pizza =new BananaPizza();
        }
        return pizza;
    }
}
